package com.ram.mapper;

import com.ram.pojo.AssetInventoryDetail;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
import com.ram.pojo.AssetInventoryStatVO;
import com.ram.pojo.AssetInventoryCategoryStatVO;

@Mapper
public interface AssetInventoryDetailMapper {
    List<AssetInventoryDetail> list(Integer inventoryId);
    AssetInventoryDetail getById(Integer id);
    void insert(AssetInventoryDetail detail);
    void deleteById(Integer id);
    /**
     * 统计某次盘点各结果数量
     */
    List<AssetInventoryStatVO> statResultByInventoryId(Integer inventoryId);
    /**
     * 统计某次盘点按分类分组的结果数量
     */
    List<AssetInventoryCategoryStatVO> statCategoryResultByInventoryId(Integer inventoryId);
}